//
//  ViewController.swift
//  SandboxSwiftDemo1
//
//  Created by 李煜 on 2024/4/19.
//

import UIKit
import SnapKit


class ViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()

        // 沙盒根目录
        let home_path = NSHomeDirectory()
        // Document目录
        let document_path = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first
        // library目录
        let library = NSSearchPathForDirectoriesInDomains(.libraryDirectory, .userDomainMask, true).first
        // caches目录
        let cachesPath = NSSearchPathForDirectoriesInDomains(.cachesDirectory, .userDomainMask, true).first
        // preferences目录
        let preferencesPath = NSSearchPathForDirectoriesInDomains(.preferencePanesDirectory, .userDomainMask, true).first
        // application support目录
        let applicationSupportPath = NSSearchPathForDirectoriesInDomains(.applicationSupportDirectory, .userDomainMask, true).first
        // temp目录
        let tempPath = NSTemporaryDirectory()
    //https://www.jianshu.com/p/9a3532129adc
        
    }
}
